<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<script language="JavaScript" src="scripts/ts_picker.js"></script>
<fmt:setBundle basename="messages" />
<c:set var="t" value="true" />
<title><fmt:message key="title"/></title>
</head>
<body>
<div style="height: 119px; margin-left: 1px">
        <h1 style="text-align: center">
            Leave Application</h1><div id="sidebar1" style="width: 199px; height: 266px">
	<h2>Menu</h2>
	
	<p><a href="LeaveApplyJSP.jsp">Apply Leave</a></p>
	<p style="width: 202px; "><a href="PersonalLeaveHistory.jsp">View Personal Leave History</a></p>
	<p><a href="PersonalLeaveUpdate.jsp">Edit Leave(s)</a></p>
	
	<p><a href="LogoutServlet.jsp">Logout</a></p>
  	<!-- end #sidebar1 --></div>
        </div>
        <div style="margin-left: 248px; height: 379px; width: 496px;"><div>

<form action="/leaveappforiss/employee entry" method=post><!--action="/leaveappforiss/employee entry"->

<!--<jsp:useBean id="leaveType" class="model.LeaveTypeDTO"/> -->
<center>
<table cellpadding=4 cellspacing=2 border=0>
<tr>
    <td class="style1">
        <fmt:message key="setup.firstname"/>
    </td>
    <td>
    	<c:if test="${param['insert']==t}" >
        <input type="text" name="firstname" value="${param['firstname']}" size=15 maxlength=20>
        <input type="hidden" name="ins" value="true" />
        </c:if>
		<c:if test="${param['update']==t}" >
		<input type="text" name="firstname" value="${param['firstname']}" size=15 maxlength=20 readonly="readonly">
		<input type="hidden" name="ins" value="false" />
		</c:if>
    </td>
</tr>
<tr>
    <td class="style1">
        <fmt:message key="setup.surname"/>
    </td>
    <td>
        <input type="text" name="surname" value="${param['surname']}" size=15 maxlength=20>
    </td>
</tr>
<tr>
    <td class="style1">
        <fmt:message key="setup.designation"/>
    </td>
    <td>
        <input type="text" name="designation" value="${param['designation']}" size=15 maxlength=20>
   	</td>
</tr>
<tr>
    <td class="style1">
        <fmt:message key="setup.role"/>
    </td>
    <td>
        <input type="text" name="role" value="${param['role']}" size=15 maxlength=20>
    </td>
</tr>
<tr>
    <td class="style1">
        <fmt:message key="setup.phone"/>
    </td>
    <td>
        <input type="text" name="telephone" value="${param['telephone']}" size=15 maxlength=20>
    </td>
</tr>
<tr>
    <td class="style1">
        <fmt:message key="setup.address"/>
    </td>
    <td>
        <input type="text" name="address" value="${param['address']}" size=15 maxlength=20>
    </td>
</tr>
<tr>
    <td class="style1">
        <fmt:message key="setup.email"/>
    </td>
    <td>
        <input type="text" name="email" value="${param['email']}" size=15 maxlength=20>
    </td>
</tr>
<tr>
    <td class="style1">
        <fmt:message key="setup.password"/>
    </td>
    <td>
        <input type="text" name="password" value="${param['password']}" size=15 maxlength=20>
    </td>
</tr>
<tr>
    <td class="style1">
        <fmt:message key="setup.mname"/>
    </td>
    <td>
    	<select name="manager">    
            <option value="${param['mname']}" >mary</option>
        </select>
    </td>
</tr>
<tr>
    <td class="style1">
        <fmt:message key="setup.gender"/>
    </td>
    <td>
        <input type="text" name="gender" value="${param['gender']}" size=15 maxlength=20>
    </td>
</tr>
<tr>
    <td class="style1">
        <fmt:message key="setup.nric"/>
    </td>
    <td>
        <input type="text" name="nric" value="${param['nric']}" size=15 maxlength=20>
    </td>
</tr>
</table>
</center>
<input type="submit" value="Submit"> <input type="reset" value="Reset">
</form></div></div>
</body>
</html>